Hello David,
From what I see, most likely the problem is related to the makeTables call - it is most probably an asynchronous one, so the rest of the template can't rely on the data being already present. In general, fetching data from the template itself is not a standard practice. You may try removing the makeTables from there and render the template once the data from it has been received.
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!