making compare work with phantomjs as well for speed testing