Bug 1079692 --  [Flame][Woodduck][Free Test][Video] Make video title tru...

...ncation process more efficient
Please move the declaration of ellipseIndex from line 155 to here, initialize it to 0 and change its name.  It seems like a bug that it is not initialized, and you could end up passing undefined to the slice call below.