Add fixes to page jump buttons

Didn't test properly before last commit. Opening in new tab doesn't work -
using middle mouse button opens in same tab, using context menu doesn't
trigger the function.

I think best way to handle this would be to make jumpHandlerTopic return
the URL, and then change window.location (or use window.open) in the
listener function depending on whether it was a left click or middle click