[WIP] Support for emscripten

See #27