Hello,
I specialise in providing access to C and C++ code/libraries (on WIndows and Linux) - using "extensions" - to programming languages such such as PHP, Javascript, Python, Perl etc.
There are many interfacing libraries available to call C++ code from JS; including VGoogle's own 8 and emscripten.
Can I help you perhaps?
I have looked at the code and it's well-written C++ with only a few functions being exposed to the caller- and hence, will be exposed to your Javascript code..
Thanks