JavaScript : HTTP header manipulation (cookies)