Update and rename checkDate to checkDate.js