gregorian calendar lib on browser and nodejs