Added localStorage.
Added better test for empty content.