fix compabilitiy issue for old browser
Merge pull request #20 from yurenju/foreach

fix compabilitiy issue for old browser