requestAnimationFrame support

Convert this to 2-space indenting like the other files.