simply async callback functions

For kripten/emscripten#2683