fix clock.js bug