initialization of calendar with browser globals