Wrap emscripten tools in closure, explicit export