For Phonegap