Update map after reorder stops using JavaScript