Gpii 947

http://issues.gpii.net/browse/GPII-947
Here's another case where you have a boolean check and then manually set things to true or false. You could just save the check to a variable and then assign that value or its inverse as needed. In the case of addClass and removeClass, you could replace those with toggleClass.