Don't get bitten by Javascript variable hoisting in loops | Dark Hacker News