I was trying to apply performance best practices :)  Was told that items.length gets looked up every loop.  I will move var init into the loop to improve readability.