navigator.onLine removed from every file. Added a new js file for checking internet connectivity.
Internet connectivity check through ajax.