code: protected HtmlTree getWinTitleScript(){
          HtmlTree scriptTree = HtmlTree.SCRIPT();
          if(winTitle != null && winTitle.length() > 0) {
              String scriptCode = "<!--\n" +
                      "    try {\n" +
                      "        if (location.href.indexOf('is-external=true') == -1) {\n" +
                      "            parent.document.title=\"" + escapeJavaScriptChars(winTitle) + "\";\n" +
                      "        }\n" +
                      "    }\n" +
                      "    catch(err) {\n" +
                      "    }\n" +
                      "//-->\n";
              RawHtml scriptContent = new RawHtml(scriptCode.replace("\n", DocletConstants.NL));
              scriptTree.addContent(scriptContent);
          }
          return scriptTree;
      }
docs: Returns an HtmlTree for the SCRIPT tag.
  
  @return an HtmlTree for the SCRIPT tag