simply async callback functions

For kripken/emscripten#2683