Used forEach to fix closure w/in for-loop problem, thanks Keenan