Condense these tests into a declarative form, for example taking the form of a structure
[{selector: "toggleControl", attr: "aria-pressed", value: true}, .... etc
at the same time investigate whether the current jQuery "state of the art" has us really using $.prop for all of these sets and checks rather than $.attr