Line 978, change:

for (var i = 0; i < numConvEls; i++) {

to

for (i = 0; i < numConvEls; i++) {