Switched to using commandline phantomjs instead of the node wrapper