working:saving json logs to localstorage