outline for templates and javascript