Declare var.
Fix incorrect reference to blockBatch.