Storing note json in localStorage