Just thinking, if we're refactoring the code...would it be possible to move all this HTML to a template or perhaps a new sub-template?

It makes me cringe to see all this HTML in the JS when we have the Handlebars templates at our disposal :)