Pure JS templating engine