{% load static compress %}
<script>
    window.chooserUrls = {
        'pageChooser': '{% url "wagtailadmin_choose_page" %}'
    };
</script>

{% compress js %}
    <script src="{% static 'wagtailadmin/js/page-chooser.js' %}"></script>
    <script src="{% static 'wagtailadmin/js/expanding_formset.js' %}"></script>
    <script src="{% static 'wagtailadmin/js/modal-workflow.js' %}"></script>
    <script src="{% static 'wagtailusers/js/group-form.js' %}"></script>
{% endcompress %}
