the window.mochaPhantomJs test checks if phantomJs is loaded. so you can either run it with phantomjs or open it in the browser with mocha. Since we are running it in the PhantomJs context, I guess that it's not really necessary. I will remove it.