Phonegap app init