I use a web-based game engine that uses JS code, and when I export it it's a standalone HTML file... probably not exactly what you're asking about but close enough. It's pretty interesting when people don't use the mainstream game engines and stuff like that!