If you want low friction and target as many browsers as possible from one codebase, JS/HTML5 plus canvas drawing or WebGL seems like the best option. If you are worried about revealing too much, you should look for a JavaScript obfuscator.
If you already have an existing C/C++ code base, you may want to take a look at emscripten, which by default emits asm.js.