fix scroll-to functionality in firefox