No problem! Thanks for doing the work to modulify it :)
The whole var foo = this; thing for timeouts is a bit strange - but once you've got that everything usually falls into place quite nicely.
var foo = this;
@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.
No problem! Thanks for doing the work to modulify it :)
The whole
var foo = this;
thing for timeouts is a bit strange - but once you've got that everything usually falls into place quite nicely.