Fixing up structure needed for PhoneGap