Update to cordova 3