Page scrolls to top when JS error messages rendered