Use length variable for better perf
Merge pull request #65 from Livefyre/loop_optimization

Use length variable for better perf