Cleaned up Phonegap