Wait for deviceReady for Cordova.