Change guards for phantomjs.