Fixed IE9-6 problem with element.classList

See description at: 
http://stackoverflow.com/questions/8098406/code-with-classlist-does-not-work-in-ie