compat with phantomjs 1.9