changing all uses of for x in y where y is a list to instead use counters, because that should help the unfortunate people using IE8