Emscripten port of CuraEngine