Add the options 'first-day' and 'no-extra-rows'.

The first-day attribute sets the first day of the week.
The no-extra-rows attribute disables adding empty rows to the calendar.

this could be in a oneliner:

`if (noExtraRows && date.getDay() === firstDay && date > lastDate) break;`