save text to localStorage