Escape() / unescape() depreciated - what's the alternative?

It looks like the the reason Chrome, Brave and Opera weren’t playing, was because the files weren’t being provided from a server. I dropped them onto the Linux box and voila; working as expected. My guess is there’s a security block built in somewhere that IE, FF and Edge don’t have.

Thanks for all the useful links and pointers.