fixing jshint problems