Adjust for loop as not to trip up uglifyjs

A tiny change, but it was keeping me from using this in my project. I adjusted a for loop slightly because the js minifier I use (uglifyjs) was compiling it incorrectly.

Its really an issue with uglify but this was an easier fix!