Use existing bonzo method each instead of foreach
Merge pull request #3126 from guardian/fix-fenced-js-error

Use existing bonzo method `each` instead of `forEach`