I'm afraid I don't have much of an idea - that does look correct though.
I'll take another look at it - however I'm really busy getting stuff ready for the Maker Faire, so probably won't get a chance for the next 2 weeks I'm afraid.
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.
I'm afraid I don't have much of an idea - that does look correct though.
I'll take another look at it - however I'm really busy getting stuff ready for the Maker Faire, so probably won't get a chance for the next 2 weeks I'm afraid.