Fixed most of jshint's complaints