Add a js template to show the record tree nodes