An attempt to proxy tcp connection through web socket in JS