FS Cookie Banner datepicker jQuery error

Hello guys
I have an issue with the fs cookie consent tool. It’s about those two scripts I have in my site “before tag” code.

No errors then, but when I want to implement the cookie consent attributes, I have some errors because jQuery.

Result in console:
jQuery.Deferred exception: $(…).datepicker is not a function TypeError: $(…).datepicker is not a function
Uncaught TypeError: $(…).datepicker is not a function

Found it out myself. I forgot to put the attributes in the script below aswell.

Before:

<script src="https://fengyuanchen.github.io/datepicker/js/datepicker.js"></script>
<script src="https://fengyuanchen.github.io/datepicker/js/datepicker.de-DE.js"></script> 

<script>  
  $(document).ready(function () {
    $('[data-toggle="datepicker"]').datepicker({
      format: 'DD.mm.YYYY',
      language: 'de-DE',
      startDate: '+1d'
    });
    if (window.innerWidth < 768) {
      $('[data-toggle="datepicker"]').attr('readonly', 'readonly')
    }
  });
</script>

Solution:

<script type="fs-cc" fs-cc-categories="personalization" src="https://fengyuanchen.github.io/datepicker/js/datepicker.js"></script>
<script type="fs-cc" fs-cc-categories="personalization" src="https://fengyuanchen.github.io/datepicker/js/datepicker.de-DE.js"></script> 

<script type="fs-cc" fs-cc-categories="personalization"> 
  $(document).ready(function () {
    $('[data-toggle="datepicker"]').datepicker({
      format: 'DD.mm.YYYY',
      language: 'de-DE',
      startDate: '+1d'
    });
    if (window.innerWidth < 768) {
      $('[data-toggle="datepicker"]').attr('readonly', 'readonly')
    }
  });
</script>