use phantomjs to replace request