Phonegap Initialization