Changed index var in loops from $ to $index
Merge pull request #1 from willianjedai/master

Changed index var in loops from $ to $index