phantomjs method example