code cleanup; do not need localStorage.dates