fix module; add requestAnimationFrame