updated for windows emscripten compilation
more work on application loading