The perils of console.log
if (j = 1) instead of
if (j == 1)
Well, that cost me a few hours to track down because I was assuming that my variables were the exact values when console.log was being called. I suppose you could use something like:
and then check for stupid assignments.