How to use aliased jQuery with Select2?

How can I use “aliased” jQuery with Select2?:

<script src="jquery-v1.12.js"></script>
<script>
var $pb = jQuery.noConflict();
</script>
<script src="select2.js"></script>
<script>
$pb("#mydropdown").select2();
</script>

Exception is:

Uncaught TypeError: $pb(…).select2 is not a function

I resolved it myself. Just moved the row above:

Still, thanks.
Esref Atak
https://www.processbell.com