I have solved by modifying the dom element modification from h1 to h2 either by inner html or append to the element after clearing that.
But I found the element with hidden that also holds the text , so I modified both the element. I am not sure this is the right way to do, please suggest.