code cleanup using jshint