FIX: Build was broken because uglify can't accept `let` or `const` (PR #10806)

For now we can live with var.

GitHub