Adds before and after boolean functions
Adds a small improvement to Gantt generateHTML function that limits the number of loops against time scales