Javascript automatically fills in the date boxes