There's some code for this posted up in another thread now: http://forum.espruino.com/conversations/287046/#comment14322664
@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.
There's some code for this posted up in another thread now: http://forum.espruino.com/conversations/287046/#comment14322664