Support user agent for phantomjs