Problems rendering nested divs with handlebars.js

Newbie here so please bear with me. I’m trying to render nested divs with handlebars but I’ve come across trouble writing the code for it. This is what I’ve been testing on the console.

var handlebarsTemplate= "<div id='{{}}'>{{comment.value}}{{{some comment}}}</div>"

var post = {
id:"123", value: "hello handlebars windows page",
newArray: [{id:"321", value: "hey", newArray:[{id:"444", value:"hullo", newArray:[]}]}]

Handlebars.registerHelper("some", function iter(obj){
        for(var i=0;i<obj.newArray.length;i++){
            var psot = document.createElement("div");
   = obj.newArray[i].id
            psot.innerHTML = obj.newArray[i].value;
			var theIdd =
            var dives = document.getElementById(theIdd);


//whenever I run it all I get is whats below, but I want it to nest the other values inside this div.

"<div id='123'>hello handlebars windows page</div>"

Where am I going wrong please?