exactly like .addClass and .removeClass from jquery but without dependencies