Fix for Cordova 2.9

applying compatibility upgrade required by Cordova 2.7
https://github.com/apache/cordova-ios/blob/master/guides/Cordova%20Plugin%20Upgrade%20Guide.md