It looks like everything is evaluated client-side (even the Java), so I believe you'd need a C++ implementation in JS ...
As far as I know, things like Emscripten (https://github.com/kripken/emscripten/wiki) can compile C/C++ to JS, but the compilation itself doesn't happen in JS.