clean up code. jshint