Store result of javascript function in hidden component on initial load of app

i have added a javascript file to the assets folder in my dash application. It runs as expected on initial page load. I need to store the results of the function somewhere so that they can be accessed by a callback function. I assume I should store them in a hidden html component. Is there any easy/standard way to do this in Dash?