Switch phonegap.js to cordova.js