implmeneted looping fix
Merge pull request #38 from danielstern/fix-looping-for-ie9

implmeneted looping fix