fix outgoing_links JS error on click; add outgoing_links UI tests (bug 1088435)