Replace cordova.js with phonegap.js