Adding a forEach shim since older browsers don't have Array#forEach.