Create data attributes properly from setProp