Try to animate to anchor after JS has loaded.