The bug in your JavaScript for loops
javascriptodyssey.com