changing this to window

this will not bind to the global object, so Queue wont work for the browser, window will fix this issue.
Merge pull request #2 from sadiqevani/patch-1

Changing this to window.