Fix bug in code. Window object should be accessed by using the variable @window
Merge pull request #2 from mkozakov/patch-2

Fix bug in code. Window object should be accessed by using the variable ...