implement .jshint recommendations