super ugly hack to make protractor work with phantomjs