Fixed client.js to use websocket address from the config