phonegap to cater for iOS -- attempt