Ahh ok. Personally I'd say rewriting the main flash would be a bad idea - if there were a problem, you could brick everything.
Maybe:
That way, your V1 code isn't taking up any RAM at all until it's called - so you don't even need to unload it.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh ok. Personally I'd say rewriting the main flash would be a bad idea - if there were a problem, you could brick everything.
Maybe:
That way, your V1 code isn't taking up any RAM at all until it's called - so you don't even need to unload it.