You need to get value of your hidden input field before rendering template.
For example....
function draw()
{
var data={ Name : 'Peter', FirstTdValue : $("#personId").val()};
var template = $.templates("#tmpl");
var htmlOutput = template.render(data);
$("#result").html(htmlOutput);
}