Add selected class to selected rows and add classList shim