Update swapClass method

Simplifies swapClass method using jQuery removeClass().addClass()
chaining to fix issue where swapped classes merge into classes already
present, e.g. is-activenav-tasks’.