Then you need to change your logic for increasing the index of the array. Right now, you have the following:
This is inherently flawed in several ways. First, you are subtracting, not adding (not always a bad thing, but probably not what you want here), you are adding (or subtracting) index + 1 from the value that is already there, and then multiplying that value by zero, which will leave with you with zero, and thus you aren't changing the value at all.
Instead, try logic like this:
With this piece of code, you increase the index by one and the remainder operator (%) ensures that the index wraps around back to zero after exceeding the size of the array.
Lastly, not necessarily affecting the output of your code, but a good thing to keep in mind, you are changing the y value of the text, but you are checking it against x values (width and textWidth(blah)) for wrap-around! Instead, you should check to see if the y position is less than zero and then set it to the height, not the width (although in this piece of code it makes no difference as the width and height are the same).