add data method with HTML5 data attributes support