added request animation frame to scheduler