You can do `widgetcode += '<td align="center">';

Also, nit: convention demands that strings be quoted with single quotes rather than double (unless there's a good reason), so I'd swap the quotes on this.