update for cordova 3.1