tune up emscripten build by adding mouse movement and repairing compiler flags