fix jshint errors
remove 'cordova' as allowed global variable