calender js modifying