Adds a workaround for forEach to work on IE8