Converted part of rainbow-dash to C compiled via emscripten.