You are missing at least two \
in your string literal:
var filter_all_head_row="
<tr>\
<th>smth</th>\
<th>smth</th>\
</tr>
";
Should be:
var filter_all_head_row = "\
<tr>\
<th>smth</th>\
<th>smth</th>\
</tr>\
";