javascript template like jinja