Fixing JSHint issue