Don't use Array.prototype.forEach

Fixes #53