code: protected String generateJS(final TextTemplate textTemplate)
  	{
  		final Map<String, Object> variables = new HashMap<>();
  		variables.put("componentId", this.component.getMarkupId());
  		textTemplate.interpolate(variables);
  		return textTemplate.asString();
  	}
docs: Generate js.
  
  @param textTemplate
  the text template
  @return the string