Additionally adds word, line classes to each item as well as index based classes

e.g. <span class="word7 word">Hello</span>