fixing most of jshint warnings