Ported to Emscripten.
Merge branch 'master' into compatibility