tutorial on templating  javascript.