fixed forEach not supported in IE7, IE8

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>