handling date changes solely in HTML/Javascript.