Boilerplate code for phantomjs tasks