inject the QUnit helper when the page finishes loading to support redirects in phantom 1.8