Fix scrolltop animation for firefox