component install amasad/timer
var Timer = require('timer');
var $ = require('jquery');
var timer = new Timer({
interval: 15,
outerRadius: 50,
onComplete: function () {
alert('complete');
}
});
$(timer).on('step', function (e, timeleft) {
console.log(timeleft);
});
$('body').append(timer.$el);
timer.start();