Changes for the new phantomjs cartridge