changed to cordova.js