The mahjong rules engine is compiled from our own C++ source with Emscripten and statically links the C++ standard library and a JSON library.