Thank you too. For both Windows and Javascript you use main_sdl.c, I think I used the mingw compiler to make the Windows version so the compilation was very similar to how it's done on GNU/Linux. There are some comments on compiling with emscripten in main_sdl.c and make.sh.