Edits for Phonegap