updated cordova js file