PhoneGap fixes