Mother Flippin Clock!
var Clock = (function(){
var exports = function(element) { this._element = element; var html = ''; for (var i=0;i<6;i++) { html += ' '; } this._element.innerHTML = html; this._slots = this._element.getElementsByTagName('span'); this._tick(); };
exports.prototype = {
_tick:function() { var time = new Date(); this._update(this._pad(time.getHours()) + this._pad(time.getMinutes()) + this._pad(time.getSeconds())); var self = this; setTimeout(function(){ self._tick(); },1000); },
_pad:function(value) { return ('0' + value).slice(-2); },
_update:function(timeString) {
var i=0,l=this._slots.length,value,slot,now;
for (;i