So.
The tool is now 100% front-end. I used the library @mykii posted below (https://github.com/mykiimike/jen) and there should not be any HTTPS errors now.
The code is even on Github (https://github.com/djaiss/simplestpasswordgenerator) - so you can see that I don't do anything nasty with our precious passwords.