Add 'contains' for the classList implementation

`classList.contains` is used in a few places.