Switch from el.dataset to el.setAttribute for IE compatibility