new way to use phantomjs