Phantomjs does not have requestAnimationFrame