function refreshItemIds(items) {
	const newItems = {};
	for (var id in items) {
		const newId = generateRandomId();
		items[id].id = newId;
		newItems[newId] = items[id];
	}
	return newItems;
}
items is an object of  {itemId: item}. This fn changes all the keys to new item IDs