a client-side templating engine? it's such an awkward problem... I'll do a little research and see if anyone has solved this a better way