Since we're hardcoding HTML into javascript a lot, would it be worth exploring using Handlebars templates (there's a nice requirejs plugin Connexions is using)