Ok then. But do you need to declare `var` in every occurrence of the loop? And to use Bonzo instead of collection.getAttribute (or something that would not make a new DOM query since we already have the element in memory)?

Just trying to keep the memory usage and DOM touching as low as possible.