Update compareDate.js