Applied JSHint changes