Lots of JS errors on initial page load

Using the search code feature, I cannot find that we reference e.g. localStorage anywhere…?