index.html - onDeviceReady - identify state of the network connection