websocket connects using window.location.hostname for use with nodejitsu