TypeError: s is undefined
TypeError: aeventorigdays[index] is undefined
and you can tell there is no variable or function names s on that line!
after I try real hard about 3-7 times and after changing the file and doing refreshes each time, one time it showed that the top error was from line 86.
to be honest, I don't know for sure what caused it to trigger the right behavior. but I know it's consistently bad.