change ref phonegap.js to cordova.js