Uses phantom-jasmine to add tests

Requires phantom.js. Uses https://github.com/jcarver989/phantom-jasmine, but not the NPM module, which doesn't work for some reason