comitting request animation frame example