`document` needs to be a JQuery object

In order to call `trigger` and `bind`, `document` needs to be a JQuery object.

Also, it looks like [`on` is preferred to `bind` when using JQuery 1.7+](https://api.jquery.com/bind/).
Merge pull request #21 from spilth/patch-2

`document` needs to be a JQuery object