Fixed DOM.addClass and added 'className' as an alternative to 'class'