created d3html string, method to return string, changed variable name