Corrected to Phonegap Format