update indexjs