Simplify loop initialization so it won't break when minified with uglify.js