use phantomjs in extract_links.js