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’.
Merge pull request #101 from moneyadviceservice/fix/mas-collapsible

Update swapClass method