The source code used for the C part of the converter is here, if anyone is interested in it.
You can do anything with it, just credit me.

Use emscripten to compile this code. Assuming you're using a Linux host to build, run these commands (do note that the resulting files will be in the source's parent directory):
emcmake cmake -B path/to/build -S path/to/source
emmake make -j $(nproc)