Optimize public/js/clock.js and fix schedule collapse visual bugs