I'm not sure if it's possible right now. Relays need to be able to accept incoming connections and if it's running within a browser it may not be possible. But then again I haven't investigated this.