Why not var j in loop?