This change was made because the advice was "out of date" and Google handles JavaScript fine.
Always test your pages using Google’s own tools and third-party resources to view the rendered HTML to make sure all your content is showing up. Google has come a long way with rendering JavaScript.