The wrapper as something that can be used with the emscripten --post-js option.