added missing check for the existence of the cookie header
fixed shadow chatbox width not being properly set