JavaScript: Templating Example