made the dynamic clock to webpage with setInterval method