Ensure trimDays() does not run if the days table is empty - it cannot handle this condition.
Remove writeStorage() call on unload, it never fires anyway.
Change "clear saved days" button to "clear localStorage" button; prevent
trimDays() from running with only 1 saved day.