use {set,get}Attribute for ie compat

because IE doesn't have `element.dataset`