Confirmed: Google is able to execute and index JavaScript

Quote

1. Ran a series of tests that verified Google is able to execute and index JavaScript with a multitude of implementations. Confirmed Google is able to render the entire page and read the DOM, thereby indexing dynamically generated content.

2. SEO signals in the DOM (page titles, meta descriptions, canonical tags, meta robots tags, etc.) are respected. Content dynamically inserted in the DOM is also crawlable and indexable. Furthermore, in certain cases, the DOM signals may even take precedence over contradictory statements in HTML source code. This will need more work, but was the case for several of our tests.

 

Read more here: http://searchengineland.com/tested-googlebot-crawls-javascript-heres-learned-220157