replaced phonegap.js with cordova.js