phantomjs hacks