Dynamically adds or removes items from a list on the client side and normalizes the list index.