I agree that you don't want to do $('table') for every function every time the event is triggered.
The functions and $('table') can be in the same scope without that being the global scope though. This could be done with a wrapping function or by binding the tables variable to the functions when they're created.