update phantomjs cookbook example