Added phantomjs as dep.
Changed to tdd style mocha tests.