Update demo to work properly. Expose exports.rpcRequest