JS issue found in ESLint automated tool