Automate phantomjs tasks.