clean up by using jshint