<%-include('../head.ejs') %>
<body>
<header>
    <h1>
        <%=title%>
    </h1>
</header>
<section>
    <table id='html-data-table'></table>
</section>
<script type="text/javascript">
    fetch('http://localhost:5000/cost/data')
        .then(function (response) {
            return response.json();
        }).then(function (apiJsonData) {
        renderDataInTheTablewithID(apiJsonData, 'costTarget', 'html-data-table');
    })
</script>
</body>