Remove usage of underscore templates
SONAR-5057 Remove Prototype.JS from SonarQube

Use native forEach instead of prototype's each