<p></p>
<script src="http://momentjs.com/downloads/moment.js"></script>
<script>
var p = document.getElementsByTagName('p')[0],
timer = 20;
p.textContent = moment.unix(timer).utc().format("HH:mm:ss");
setTimeout(function () {
p.textContent = moment.unix(--timer).utc().format("HH:mm:ss");
timer ? setTimeout(arguments.callee, 1000): alert('blablabla')
}, 1000);
</script>