make init optional for emscripten port