have not tried script yet but from looking at code i noticed couple minor issues
maxcycles = 500 was undefined ? this means your using a variable that has not been created yet simple fix change line 88 from maxCycles = 500; to let maxCycles = 500;
red was undefined just needed ' ' added on line 120 change to inputEl.style.border = 2px solid ${'red'};
have not tried script yet but from looking at code i noticed couple minor issues
maxcycles = 500 was undefined ? this means your using a variable that has not been created yet simple fix change line 88 from maxCycles = 500; to let maxCycles = 500;
red was undefined just needed ' ' added on line 120 change to inputEl.style.border =
2px solid ${'red'};other than that looks great nice work :)