Fixing jshint problems