Call setAttribute when setProperty is not defined (IE8)