Refer Below Code
window.setInterval(function () {
var date = new Date();
alert(date.getMinutes());
if ((date.getMinutes() % 5) == 0) {
MyMethod();
}
}, 60000);
Check Multiple of 5 Minute's and run your method " MyMethod();" on a setInterval of 1 Minute.