change to cordova.js