Checking network connection added. cordova API connection used.
Changes made by Yoanna Mareva (jo.thirdeyevision@gmail.com).