This change was made because the advice was "out of date" and Google handles JavaScript fine.
Google removed its JavaScript accessibility guidance from help documents, saying the advice is outdated and noting it has rendered JavaScript for years.
Google has updated its JavaScript SEO basics documentation to clarify how Google’s crawler handles noindex tags in pages that use JavaScript. In short, if “you do want the page indexed, don’t use a ...
Google updated its JavaScript SEO best practices document with a new section on how to set the canonial URL when using JavaScript. Google wrote, "The best way to set the canonical URL is to use HTML, ...