Use phantomjs from npm

Using [phantomjs from npm](https://npmjs.org/package/phantomjs) allows for easier testing for new machines and new contributors. With the change, testing is as easy as this (with npm installed):

```
npm install
npm test
```

It may also be worth adding instructions for testing to the README or CONTRIBUTING files.