Emscripten port
Merge pull request #16 from Maratyszcza/emscripten

Emscripten port