Converts var declarations to let declarations. let declarations are block-scoped and behave more strictly.

Declarations might be moved to the top of the function or before the first usage of the variable.