yea so I thought of making the template above a macro (and then using the macro here) but I then I didn't think it would allow me to compile it in the javascript (for adding rows).  But I may be wrong on that.