changed from curl to phantomjs