`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/).