That’s a viable option, and one I’m pursuing, however I think there are sections of a game where it makes more sense to have a nosleep functionality than others, such as during an other player’s turn, but not whilst you are looking at the options menu. Does that make sense?
I don’t know how nosleep.js works, but can you include it on the page and then use it from html5.run()? Another option is to create an extension and make a Lua binding, but that seems overkill.