fix for dom.addClass in chrome