update js index