setup for JavaScript testing with phantomjs