Fix issue where links wouldn't respond to jQuery events after updatePage() has been called