state just before trying out a while loop in the checkSkipDates function
tightly refactoring the date arrays. also includes a test page