Fix JSHint warning about missing local variable