Humm.. you might need to tweak the code. This uses the browser's expression to sign via window.nostr... The returned values are two wraps for the sender and the receiver. All you need to do is to broadcast them to the relays each one uses.