Add a 'fragmention' class to a matched element.

And remove the class from any existing elements when a new one is searched for.