Added inpropertly working downgrade.
Now index is JS-generated