Move requestanimationframe to compatibility.js