<script type="application/javascript">
var map = {
<c:forEach items="${configFiles}" var="c" varStatus="loop">
"${c.name}": [
<c:forEach items="${c.settingsList}" var="s" varStatus="sub">
"${s.targetIP}" <c:if test="${!sub.last}">, </c:if>
</c:forEach>
] <c:if test="${!loop.last}">, </c:if>
</c:forEach>
}
</script>