We're doing a mix of creating elements in javascript and using elements from the template.  We should probably switch to just one or the other approach.  Can add a TODO to remind us to revisit this later.