Update main.js

corrected date's into Date's