clean Clock.js code