(frontend) Add more code that should allow for Emscripten support
in frontend.c