C/C++ to JavaScript/WebGL