Port to emscripten

Patch from daft-freak