Use `forEach()` instead of for loop

Removes need for `continue` statement, which fails JSLint