Reinstating jQueryUI switchClass() function.