Just to add a bit more information …
When using, for example,
var something = "...
then the variable is stored only for that script / function and nothing outside the script / function can access that variable. It’s like a temporary assignment. When you’ve finished the ‘action’ (script / function) the name of the variable is put back in the pool so it is available.
When using the
window.something = "...
then the variable is held by the browser (window) and can be used as and when (also in the console) and will only be released at the end of your session. (well, never as when you open back up it will be stored again )
You can also use the Hype API to start, pause, rewind
hypeDocument.startTimelineNamed('**timeline**', kDirectionReverse / kDirectionForward)
hypeDocument.pauseTimelineNamed('**timeline**') // pause
hypeDocument.goToTimeInTimelineNamed(0, '**timeline**') // rewind to beginning
var currentTime = hypeDocument.currentTimeInTimelineNamed('**timeline**')
hypeDocument.goToTimeInTimelineNamed(currentTime - 2, '**timeline**') // rewinds the timeline 2 seconds
… timelines so perhaps in your code already you can check the state of the toggled buttons and maybe manipulate the timelines accordingly.