I thought it would be the quickest way to insert a bunch of html for the new row into the table, without typing it all out.  So I put it in a template and compile the html to insert. Is there a better way to insert html programmatically? In the past I've done appendChild's and the like but it seemed like a lot of work/messy for this