$.query not found?

I had an issue adding pages, about missing javascript. Googling around for what might be at fault, I found
this little plugin, which seems to be removed from jQuery now.

I took the liberty of adding it in, so as to make the admin view usable.

If this is the incorrect approach, please let me know. I didn't find anything about this in the docs or google.