code: public String getJavaScriptHtmlCookieString(String name, String value) {
          return getJavaScriptHtmlCookieString(name, value, null);
      }
docs: Creates and returns a JavaScript line that sets a cookie with the specified name and value. For example, a cookie name
  of "test" and value of "123" would return {@code document.cookie="test=123;";}. Note: The name and value will be
  HTML-encoded.