changed cordova to phonegap.js