add library_async.js

For kripken/emscripten-fastcomp#39

should move this to `test_core`, so it runs in all optimization modes, not just `-O0`,