Need to cast document to a JQuery object to call `bind`

If you don't cast document to a JQuery object, you get `undefined` for the `bind` method.