Hi, you should check with a debugger when and where the crash happens.
For example this line
speed = window.width / (colTime_2 - colTime_1)
might cause a crash if colTime_2 and colTime_1 are the same (division by zero).

Ginsengelf