Add phantomjs as build dependency to npm, fix crash on local machine