changed detection of Phonegap