code: @Override
  	public String generateJavascriptTemplateContent(final Map<String, Object> variables,
  		final String methodName)
  	{
  		final StringBuilder sb = new StringBuilder();
  		if (!getSettings().getStack().isInitialValue())
  		{
  			final String customStack = "customStack";
  			final String stack = (String)variables.get("stack");
  			sb.append("var " + customStack + " = ");
  			sb.append(stack);
  			sb.append(";\n");
  			variables.put("stack", customStack);
  		}
  		sb.append("new");
  		sb.append(" ");
  		sb.append(methodName);
  		sb.append("(");
  		if (0 < variables.size())
  		{
  			generateJsOptionsForTemplateContent(variables, sb);
  		}
  		sb.append(");");
  		return sb.toString();
  	}
docs: Generates the javascript template code from the given map and the given method name that will
  be used to interpolate with the values of the given map.
  
  @param variables
  the map with the javascript options.
  @param methodName
  The method name.
  @return The generated javascript from the given map and the given method name.