Adding the PhoneGap code