How to call a script block after jquery is loaded in elgg

I want to implement the following code in my elgg and this need to be called after the jquery is loaded in elgg.

<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.16/datatables.min.js"></script>

<script>
  $(function () {
    $("#example1").DataTable();
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false
    });
  });
</script>

Now as elgg loads all the js and jquery file at the end of the page. I want to execute the above code after the jquery is loaded in elgg. This needs to be implemented only at one specific page at "/mod/plugin_name/views/default/folder_name/view.php"

How can I do this?