move js templates to jinja