added cordova.js to the code