Use localstorage.removeItem to delete an item from localstorage instead of setting to null