changes $.each to normal for loops
Merge pull request #11 from nifengle/touching-up

changes $.each to normal for loops