Complete javascript templating solution