Fixes #83107 by removing duplicated entries and solving jshint warnings.