Bind events to the document, rather than each link