Glad you got it sorted - I'll look into this a bit more and continue to update on the issue you'd filed on: https://github.com/espruino/EspruinoWebIDE/issues/292
@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.
Glad you got it sorted - I'll look into this a bit more and continue to update on the issue you'd filed on: https://github.com/espruino/EspruinoWebIDE/issues/292