flesh out js rpc client