I suggest to verify Wifi. Have a look at this snippet http://www.espruino.com/EspruinoESP8266#wifi
@MaBe 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.
I suggest to verify Wifi. Have a look at this snippet http://www.espruino.com/EspruinoESP8266#wifi