Removed use of array forEach, breaks in older browsers. Closes #290