Shameless plug: Embedded JavaScript VM, ported to ESP8266 port

https://github.com/cesanta/smart.js