Script with there is no Internet

I know nothing about this kind of stuff, but a quick google (“Intel XDK no internet connection message”) brings up some stuff, like this:

http://stackoverflow.com/questions/27268922/how-to-check-connection-in-intel-xdk