Bind event listeners to document