Fix JSHint complaints