Haha, I just did the same thing: http://nerdlife.net/colorclock.html
HTML5, CSS3, webfonts, and jQuery
window.setInterval(frame, 1000);
Do: window.setTimeout('window.setInterval(frame, 1000)', 999-(new Date()).getMilliseconds());
That way the seconds will be properly synchronized.