Trying to get js unit testing to work.
A fix with clipping durations.