We should not assume that jQuery is attached to window

If we try to use TableDnD through a module loader it simply breaks because jQuery is not attached to window and we should not assume it is or will be. With this change, it works in both cases. That's how most plugins do it and that's also how it's done in the official documentation: https://learn.jquery.com/plugins/basic-plugin-creation/

Thank you!