websocket shim for javscript in the webview via native websockets