They keep changing it up.
Now it was X and not y in for loop:
for (var D = 0, X = 0; X < d; ++X)
and do X = d in console.