Phantomjs as dependency

This pull request adds phantomjs as a dependency, removing the need to have it installed globally.