$(document).ready(function () {
            $.ajax({
                url: "/api/accounts",
                type: 'GET',
                dataType: 'json',
                success: function (accounts) {
                    for (let account of accounts)
                        insertElement(account)
                    $('accounts-count').text(accounts.length)
                }
            });
        })

        function closeModals(){
            for (let element of $('.modal')) {
                let modal =