update index script