seperated phantomjs boilerplate code into testrunner.js