Phonegap Init mess up