Attributes: addСlass and removeСlass performance improvements

It would be better for performance to cache element.className in variable: http://jsperf.com/cache-elem-classname-vs-non-cache-elem-classname