calendar update with js