Changed index tpl with JS changes and some index.py changes