adding rpc call from js