replaced cordova.js with phonegap.js