Sorted out JSHint complaints.