update PhoneGap structure