Avoid using a local variable named requestAnimationFrame

This avoids potential problems due to hoisting.

Also rename rafTime and rafNo for consistency.