Also I don't think you're using the latest version of the Web IDE either.
15 minutes before you wrote that post I merged some of Jurgen's changes which it turns out have fixed that issue (if you don't use modules, they don't call 'Modules.removeAllCached()').
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.
Also I don't think you're using the latest version of the Web IDE either.
15 minutes before you wrote that post I merged some of Jurgen's changes which it turns out have fixed that issue (if you don't use modules, they don't call 'Modules.removeAllCached()').