Javascript JSON templating engine