updated to work with new phantomjs tar gz