Fixing jshint warning