Templating engine for JavaScript