it's done this way because `workingText.push(somestring); then changing `somestring = 'some text';` won't update the `workingText`, so it's easier to just store the index in the `workingText` array for the closure below to access.