code: public static String asJavascriptArray(final Set<StringTextValue<?>> settings)
  	{
  		final StringBuilder sb = new StringBuilder();
  		sb.append("{\n");
  		int count = 1;
  		for (final StringTextValue<?> textValue : settings)
  		{
  			switch (textValue.getType())
  			{
  				case STRING :
  					if (textValue.getQuotationMarkType().equals(QuotationMarkType.NONE))
  					{
  						sb.append(textValue.getName());
  						sb.append(":");
  						sb.append(textValue.getValue());
  						break;
  					}
  					sb.append(textValue.getName());
  					sb.append(":");
  					sb.append("\"" + textValue.getValue() + "\"");
  					break;
  				default :
  					sb.append(textValue.getName());
  					sb.append(":");
  					sb.append(textValue.getValue());
  					break;
  			}
  			if (count < settings.size())
  			{
  				sb.append(",\n");
  			}
  			count++;
  		}
  		sb.append("\n}");
  		return sb.toString();
  	}
docs: Converts the given {@link Set} of {@link StringTextValue} to a javascript array.
  
  @param settings
  the settings
  @return the generated javascript array.