Fix the JS tests on Firefox 23+ by being a little bit rubbish and not clearing up
after ourselves. Plus point: tests pass again. Negative point: ugh.