Changes for phantomjs