JSHint refactoring.