I found a solution to run interval in javascript immidiately, not waiting for a first \"timeout\"
setInterval(function hello() { console.log(\'world\'); retu
If you add the parenthesis to the below code part it does
doMagic: function () { setInterval(function magic() { console.log('magic'); return magic; }(), 2500); // added them here }