Add missing var in for loop variable declaration

This was causing an error when compressing the JS with [Slimit](http://slimit.org/) because a variable "l" was being reassigned.