code: public JavascriptVarBuilder appendText(final String value, final boolean quoted) {
          if (quoted) {
              sb.append("\"");
              if (value != null) {
                  sb.append(EscapeUtils.forJavaScript(value));
              }
              sb.append("\"");
          }
          else if (value != null) {
              sb.append(value);
          }
          return this;
      }
docs: Appends text to the var string
  
  @param value the value to append
  @param quoted if true, the value is quoted and escaped.
  @return this builder