JS update index-hung