documentation and code changed for cordova 2.4