jshint code cleanup