Set cookie with js.