migrating to cordova 3.0