right, I missed this.

I'd still want to have a regular push. and push returns the new length :) (see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/push)

so `var textIndex = workingText.push('') - 1;` works
or keep textIndex as it is defined now, and just push.