Update localstorage.js