Get tests (maybe) working under phantomjs