creating input form items dynamically not showing

creating input form items dynamically not showing

I'm making a call to the back-end which returns one or more values.  I'd like to use the return values as input/ checkbox items.  Here's how I've implemented this thus far:
  1. $.mobile.changePage("#establishRelationship", "slide", false, true);
  2. checkboxMarkup += "<input type='checkbox' name='${name}' id='${id}' class='inputs' />";
  3. checkboxMarkup += "<label for='${id}'>${name}</label><br />";
  4. $("#establishRelationshipControlGroup").empty();
  5. $.each(km.core.currentRelationships, function(cnt) {
  6. arr.push({
  7. "name": km.core.currentRelationships[cnt],
  8. "id": ("rel-" + cnt)
  9. });
  10. });
  11. $.template("checkboxTemplate", checkboxMarkup);
  12. $.tmpl("checkboxTemplate", arr).appendTo("#establishRelationshipControlGroup");
  13. $('input').checkboxradio("refresh");
This does not produce the desired outcome.  I get regular, unformatted html checkboxes.  Not like the formatting you see  here.

Suggestions?