Add support for Windows 8 Narrator ExpandCollapse pattern

Includes code fixes to make JSLint happier.