Merge
Variadic map + fix disastrous global loop index variables

`for(i = 0; ...)` is never what you want; you always want `for(var i = 0;...)`