forEach (not supported by IE8) replaced with for loop
Merge pull request #28 from dmkl/fix_ie8

forEach (not supported by IE8) replaced with for loop