Basic usage example is not working

I have installed Select2 like this:

<script src="" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<link href="[email protected]/dist/css/select2.min.css" rel="stylesheet"/>
<script src="[email protected]/dist/js/select2.min.js"></script>


<select class="js-example-basic-multiple" name="states[]" multiple="multiple">
      <option value="AL">Alabama</option>
      <option value="WY">Wyoming</option>

and then linked the js file with

$(document).ready(function() {

and all I get is this:
Screen Shot 2021-06-05 at 21.28.32
which does not look at all like in the example.
How can I get the Select2 to work like in the example shown on the official docs?