Updated js at index