requestAnimationFrame spec proposal

example of requestAnimationFrame (should work in Chrome 10+ and Firefox 4+)