Cleaned up all of those for(var i…) loops