With the latest phantomjs we no longer need this tricks