fixing jshint issues