This code produces a mess... What am I doing wrong?

```
 cell=$("<td>");
        if(normal.exam_type=="Exam_Boolean")
        {
            var input=cell.append("<input>").last();

            input.attr("type","hidden");
            input.attr("name","exam.exam_Normal['" +normal_id_unique + "'].boolean_v");
            input.attr("value",normal.normal_boolean);               

```