index: auto update the index.json file on each change