Google added a section on canonicalization best practices for JavaScript to the JavaScript SEO best practices document.