:wave: add window to globals
Merge pull request #15 from michalbe/master-temp

add window to globals