Got requestAnimationFrame with callback working