{% with messages = get_flashed_messages() %}
{% if messages %}
<script>
    let data = JSON.parse(`{{ messages | tojson | safe }}`)[0];
</script>
<script type="module" src="{{url_for('static', filename='f_contact/contact.js')}}"></script>
{% endif %}
{% endwith %}
