added ability to specify className
fixed requestAnimationFrame in older versions of chrome