Almost get http clone working on browser through websocket