removing npm phantomjs dependency