Update to run with latest PhatomJS, Mocha and Chai for testing