ENYO-2405: JSLint refactoring