Added Cordova reference to index file and some minor cordova calls