Use let instead of var
Merge pull request #1692 from mc10/firefox

Use let instead of var