Javascript bugfix: Window -> window