Can Google Site Search index JavaScript content on my pages?

Google Custom Search can't index content contained in JavaScript. The general rule for making sure that a web page can be indexed by Google is to ensure that all of the text that needs to be indexed is visible in a text-based browser, or a browser with JavaScript turned off.

For more resources on how to make your web pages accessible to Google, check out Google's Webmaster Guidelines.