add session.cookie_domain to JavaScript