var linum = document.querySelector('#branchList').getElementsByTagName("li").length var start = 645 var text =""
for (let index = 0; index < linum; index++) { var index2 = index + start var branch = "branch_" + index2 var h4 = document.getElementById(branch).parentNode.parentNode.parentNode.querySelector("h4").innerText var img = document.getElementById(branch).querySelector("img").src var span = document.getElementById(branch).querySelector("span").innerText text = text+ "\n" +index + " "+img + " " + span+ " " +h4