Auto append data-content attribute using js