According to Google’s Gary Illyes, Google will not index content that is hidden in Javascript.
While Google is able to parse web pages that require Javascript or AJAX, this can still cause issues. Illyes discusses that Google, “won’t see the content behind tabs if the content under the tab is dynamically generated.”
It’s important to regularly check your web pages to ensure they are being indexed by Google. SEOprofiler provides a great tool to check your web pages with Google.