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