Experimentation with PhantomJS and API interactions with Node