Small fix for RPC javascript