Debugging popups for Phonegap