fix cordova 3.0