Added feature for adding data-attrs for root tag