request animation frame is working