Revert "Use var in place of let"

This reverts commit 9b67d60197a448d09c074fd2bf16b1089b30adc8.

(I totally bungled this commit)