JS: updating date on calendar ui