remove global vars, add window resize functions and vars to Storyteller ...

...object