Remove use of classList, use attributes instead