html and js to connect to websocket