Replaced var with let

except in functions that are stringified before evaluation.

#50