JavaScript simple template engine