know more about on device ready in phonegap.