Forgot how for-eaching worked in js.

(Hint: it doesn't in older browsers, which is what I'm trying to support
with this.)