Use window.location.host to find websocket
Fix a couple of typos