wrap rpcmethod in a decorator enabling it to return a Rpc js op object from a method