Update index, js