added javascript for day change