sample phantomjs code