Thanks Vodkahttps://www.google.com/search?q=does+google+index+javascript
There are a bunch of articles about this. JS is usually (but not always) read by Google. Plain HTML & CSS is the best I think. At least have a HTML fallback in case the JS content isn't indexed for some reason. This is also good for users with script blockers