upgraded cordova phonegap libraries and got it working on iPhone