While it's nicely written, my first question is why are you running JS on a microcontroller?
I'm just looking forward to getting my hands on the ESP32. Espressif is packing a lot of bang for you buck into those; I just hope they get around to making a native SDK that is better documented. I've used the native SDK on the ESP8266 a bit and it was miserable.