Use requestAnimationFrame polyfill

Closes #28.