made host configurable (for running with PhantomJS in cloud9 IDE)