Name your variables meaningfully.
"j" is not a useful variable name. You are not a minifier. Do not assume people understand the role of "j" intrinsically.
Write code to be understood.
Name meaningfully.
Comment about *why* a thing, code should self-explain *what* and *how* a thing.
Don't make shortcuts while coding just because you know what you're thinking and doing in the moment. You won't later.