Add the cookie functions to the header footer js

This was removed from `welcome.js` in aafedc98 but wasn't added to the
header footer. There really needs to be a proper refactor of the way we
do cookies but this should be enough to get rid of the errors we are
seeing at the moment.
Merge pull request #205 from alphagov/cookie-functions

Add the cookie functions to the header footer js