JS for new date boxes, and related show/hide