jshint fixes + typo