canvas basic animation, javascript requestAnimationFrame