Fix the last couple js-tests.

This fixes up the rest of the broken javascript unit tests. There were two
issues:

1. The way that the bug tracker links are formed has changed significantly. The
   old test was sufficient for determining that the alternate formatting
   was being used, but because of the new redirect URLs, the contents of the
   comparison had to change.
2. The signature of the 'destroy' signal had changed, and the comparison was
   no longer succeeding.

Testing done: Ran js-tests in firefox.

Reviewed at https://reviews.reviewboard.org/r/6232/