Set a javascript cookie.