Please use `for` statements rather than forEach: they're faster in nearly all engines, available in old versions of IE, and have simpler behavior.