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

...ncation process more efficient
I've renamed the variable and moved the declaration as you suggested. However, I'm conflicted about initializing it to zero. It should never happen that the variable is undefined after the loop completes. That would be a bug regardless of whether the variable was initialized to zero or not. Hmm, looking again, if it was the case that a single character title was "too long", than the value would be undefined in the slice call. I've initialized it to zero.