This is one way? :)
I will likely return to this at some point. I think that there is a better method.
Also, I created ip.jws.app (because why not?) if you want to see these concepts in action.