Reddit post with detailed instructions. Video guide for even more detail.
This method essentially wraps your code in a lightweight little Chromium browser. All the code is free (gratis and libre), so no worries there.
I am not really a computer guy--it's definitely possible that the method I'm using has flaws or redundancies, but it definitely does work. If you have any questions, I'll try to answer them.