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