add localStorage persistence of text obj