Adding an adapter for storing data in HTML5 data-attributes