Prepared for mocha-phantomjs