@Purple-Tentacle: Unfortunatly I got so far no answer to http://forum.espruino.com/conversations/345222/ that should be standard way to achieve this.
@DerGuteWolf 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.
@Purple-Tentacle: Unfortunatly I got so far no answer to http://forum.espruino.com/conversations/345222/ that should be standard way to achieve this.