An event emitter wrapping requestAnimationFrame