global variables for async functions

See kripken/emscripten-fastcomp#39 for description.