Added support for headless testing using Travis CI/PhantomJS/QUnit