Check Phonegap Alert Functionality