requestAnimationFrame polyfill for GopherJS