Provide support for IE8 by adding a forEach polyfill and changing e.object value