According to my tests there's no reason to loop using js
Only apply auto play and loop to leader images