Added support for Emscripten, including streaming support in cross-origin isolated browser environments where threading is enabled.