Use requestAnimationFrame when it's available
Merge pull request #168 from campaul/request_animation_frame

Use requestAnimationFrame when it's available