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

https://bugzilla.mozilla.org/show_bug.cgi?id=1088435