add getFirstWeekDay to Date's prototype