don't use Array#forEach (breaks on non-ES5 browsers)