Sonar violation fixes for performance js files