Fixing jshint issues