now support compile to js using emscripten