added emscriptened script