JS Refactor

- Simplify the cookie methods so that there is only one set not two
- Remove old or redundant code which isn't needed for the header footer

I would have liked to have gone further and removed jQuery in its entirety. But replacing the search toggle is non-trivial as older versions of IE don't have a find elements by class method.