initial commit of emscripten support