Added support for emscripten builds