Work around for IE8

forEach was added to the ECMA-262 standard in the 5th edition; as such it may not be present in other implementations of the standard.