function of checking classList support isn't worrking

classList object is belong to div element, not style property