replaced phonegap old version code with latest cordova js file