create a demo use of template.js