PhoneGap: Improved support for iOS devices