Updating package.json with PhantomJS