cleaning up code with jshint