Okay, thanks for pointing a direction; it seems I will have to refactor that part system, while figuring out how to force Emscripten to reset the compiled application's variables.
https://github.com/haroldo-ok/CVBasic-emscripten/issues/27