dynamic host and port for index.js

allow the visualizer to be run in a location other than "localhost"