integrate phantomjs