PhoneGap initialization