<%for (var i = 0; i < deptList.length; i++) {%>
<%=deptList[i].name%>
<%}%>