adding requestAnimationFrame for phantomjs tests