fix for animate anchor scrolling for firefox.