update property name class to className and support IE brower.