Add support for mocha-phantomjs

This tiny patch adds support for running headless tests via [mocha-phantomjs](https://github.com/metaskills/mocha-phantomjs)