alerting phonegap ready