Update handler.js

Added month and date check before initializing clock