Fix 2 for loops missing var. Then I decided to get all forEach happy