Why would you write in C++ then wrap it in a C++ to JavaScript wrapper then wrap it in a JavaScript to C++ wrapper