Update for cordova 3.0