fixes jshint violations