removes all for loops and replaces them by $.each
Merge pull request #1 from mvlwn/ie8-fix

removes all for loops and replaces them by $.each