Removing the battery and re-applying will lose code if you had it just saved to RAM. All you need to do is move to saving to flash - check out http://www.espruino.com/Saving for an example.
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.
Great! Glad it's working well for you.
Removing the battery and re-applying will lose code if you had it just saved to RAM. All you need to do is move to saving to flash - check out http://www.espruino.com/Saving for an example.