Added support for JS with emscripten

This mostly required to patch OGL code. There is still have some issues with
sound. Spatialization does not work. Modifying sound volume makes the game crash
with a out-of-bound access.

glReadPixels of depth does not work on webgl. So, I cannot support collision for
the weapon