Writing a PhantomJS script to crawl a site.