code cleanup with jshint