use DOM dataset instead of attributes for $.data

Use DOM dataset instead of attributes for $.data
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset