Javascript code:function getMins () { var minutes = new Date().getMinutes(); return (minutes<10?'0':'')+minutes; }