multiselect: move all code related to selection into helper class (DOMSelection)