adding cordova-3.1.0 support