Change data attributes to use hash