Resolve JSHint warnings