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.
SearchNorwich recently published an excellent video featuring Google’s Martin Splitt discussing how to debug crawling and indexing issues related to JavaScript, saying that most of the times it’s not ...