Need help with formsets and javascript

I have spent a while trying to write a script to add my django form to a new line so I can save multiple forms at once. if anyone could help me with a script that would be awesome, completely lost

{% extends 'containers/base.html' %}

{% block body %}
    <h3 class="m-4">All Containers</h3>
    <div class="row">
        <div class="col-12">
            {% if success %}
            <div class="alert alert-success" role="alert">
                Container/s have been added successfully.
                <a href="{% url 'index' %}" class="alert-link">Go to Home Page.</a>
            {% else %}
            <div class="card bg-light mb-3">
                <div class="card-header">Add Containers</div>
                <div class="card-body">
                    <p class="card-text">
                        <div class="table-responsive">
                            <table class="table table-hover">
                                    <th scope="col" class="text-center">Company Name</th>
                                    <th scope="col" class="text-center">Container Number</th>
                                    <th scope="col" class="text-center">Driver In</th>
                                    <th scope="col" class="text-center">Date In</th>
                                    <th scope="col" class="text-center">Driver Out</th>
                                    <th scope="col" class="text-center">Date Out</th>
                                    <th scope="col" class="text-center">Container Size</th>
                                    <th scope="col" class="text-center">Empty/full</th>
                                    <th scope="col" class="text-center">Import/Export</th>
                                <form action="{% url 'add' %}"method="POST">
                                    {% for form in formset %}
                                        {% csrf_token %}
                                        {{ formset.management_form }}
                                        <tbody class="container-table-body">
                                                {{ }}
                                                {% for field in form %}
                                                        {{ field }}
                                                {% endfor %}
                                        {% endfor %}
                                    <button type="submit" class="btn btn-primary">Add</button>
                                <button class="btn btn-primary" id="add-container-btn">Add Container</button>
            {% endif %}
    <script src="" integrity="sha512-pumBsjNRGGqkPzKHndZMaAG+bir374sORyzM3uulLV14lN5LyykqNk8eEeUlUkB3U0M4FApyaHraT65ihJhDpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

{% endblock %}