Issue with Registering js

Hi guys

i have this following js in my project under folder




//load the current page with the conten indicated by 'value' attribute for a given button.

    $(modalButton).on('click', '.loadMainContent', function(){




its a simple code to open form in modal

when i tried to register that js

all the other plugins in my project stopped working

name of that js is


If someone have any idea than let me know what is the problem here

thank you

Do it via asset bundle that depends on JQuery: