Fix JSHint-reported issues