When the script loads, I get this error:
TypeErro
You can use both jQuery and $ in below snippet. it worked for me
jQuery( document ).ready(function( $ ) { // jQuery(document) // $(document) });