js insert template at a certain table position code example
Example: jquery append table row
$('#someTableID tr:last').after('<tr><td>Some data here</td></tr>');
$('#someTableID tr:last').after('<tr><td>Some data here</td></tr>');