Added JQuery and cookies to handle close session button