revision to routing/ offline check, now only waits for cordova to be ready if it needs to check network state