Refactoring with use JSLint