So I had never used handlebars when I made this, didn't really know what it was, but this should really be replaced with a handlebars template.