Fixed firstDayOfWeek

+ Now checks for missing days caused by the previous commit and starts
the day count lower if there are (see lines 277-280)
+ var zz on line 281 is unused - it is only there for JavaScript to be
happy
+ Please would others confirm this fix, thanks.