    {{if $.Request.FormValue "error"}}
                    window.history.replaceState({}, document.title, window.location.href.split('?')[0]);
                {{end}}

                $('.confirm').on('click', function() {
                    return confirm($(this).data('prompt'));
                });
            });

        </script>

    </body>
</html>
