How do I remove a class in a div element, when tags or “dynamic option creation” has created a new option in the selection?