JavaScript RunLoop scheduler for managing the requestAnimationFrame API