refact index.html using jinja2 template script