<div id="loadingElement" data-dossier-id="<?php echo $id ?>"></div>

<script>
    var rootUrl = '<?php echo $config['base_url'] ?>/';
    var dossierConfig = <?php echo json_encode($config) ?>;
</script>