Replaced incorrect JavaScript Date function, getDay on line 174 with
correct JavaScript Date function getDate.  getDay just gets the day of
the week as an integer (e.g. 0 for Sunday, 1 for Monday).  The
JavaScript getDate function returns the day of the month.