Not stopped animation while tab of browser is hidden. FRAF fix