replace phonegap.js by cordova.js