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