Now adds eventListener to document instead of window
Merge pull request #1 from cbsmth/master

Now adds eventListener to document instead of window