LPS-34188 support for templates without structures

Hey Nate, 

could you please have a look at the js part? thank you!