phontomjs debug with webkit inspector phantomjs --remote-debugger-port=9000 save.js http://localhost:8899