Updated cordova.js for android and ios