javascipt api: JSON-RPC v2 response implemented