changed the phonegap.js to cordova.js