Datatable which was working in v10 not working in v11

I had created a datatable in erp v10 and it was working there. Now I have used the same code (custom script) but here its giving error.
Can anyone help me out what are the changes v11 got regarding javascript and jquery

That’s the error I’m getting in Chrome’s console. And in firefox