Adds given function to determine if a date is the first of a time unit
Adds year to the name function
Implements more of the Gantt generateHTML function