Prepare for phantomjs and casperjs