Rewrite this script with node.js and phantom.js

We use phantom.js to take the vmList json value out of the javascript execution result
using phantom.js.