Add requestAnimationFrame script to index