Attempt at mimicking element.classList