Expandcollapseall: fixed .accent-first option

This option was previously only applying to the first toggle
control on the page.  This fix causes it to correctly apply
to the first toggle control in a given plugin element.
Merge pull request #2695 from patheard/accent-first

Expandcollapseall: fixed .accent-first option
Chart - Change ''.trim() for $.trim()