Update index to latest version
Adapt js files to the new index