Implemented javascript RPC through websocket.