improving the quality of the code with jshint