Use jinja2 for javascript generation