use setAttribute()/getAttribute() instead of dataset for IE10 compatibility