Use event delegation instead of binding the click event of all span.page_marker elements

Refs #498.