Phonegap cleanup