Made the HTML for each word much more flexible