RPC javascript plug, first draft