move updateAnimationFrame and reset to inherit call, see #40