Added setCookie script to relevant pages