moving selectedItems object from prototype to constructor so it is unique to each instance