begin port to cordova 3.0.0