#5001: Fixes jqLite not appropriately adding and removing classes for IE...

...9

This should address #5001 (tested it in a project on a Windows 7 VM with IE9), although I may not have crafted the most efficient fix - suggestions for refactoring are welcome.