Fixes a problem where the overlay module would hijack the swaptable page...

...r links

and cause a page redirect. This problem only showed up occasionally as it relied
 on which javascript object responded to the click event first.