Make Websocket connect depend on where the client got the HTML