def close_html(html):
    """Add JavaScript and write html closing tags"""
    html.write('\n</div>')
    html.write('\n</div>')
    html.write('\n</div>')
    html.write('\n</div>')
    html.write(
        '\n<script src="./.assets/js/jquery-3.3.1.slim.min.js"></script>')
    html.write('\n<script src="./.assets/js/popper.min.js"></script>')
    html.write('\n<script src="./.assets/js/bootstrap.min.js"></script>')
    html.write(
        """
<script>$(".navbar-nav .nav-link").on("click", function(){ $(".navbar-nav").find(".active").removeClass("active"); $(this).addClass("active"); });</script>"""
        )
    html.write(
        """
<script>$(".navbar-brand").on("click", function(){ $(".navbar-nav").find(".active").removeClass("active"); });</script>"""
        )
    html.write('\n</body>')
    html.write('\n</html>')
