Updated to slightly more elegant code solution

This now includes a Word class and the HTML has a template repeater set
up.