You can actually use turbowarp to turn scratch projects into HTML files! Open your project in turbowarp, then click file, and then package project. Then do whatever! Also, the game is very buggy, and I'm not sure what to do. Looks cool though!
Yeah I use turbowarp now