YUI has a nice way of creating a namespace for your methods etc. in javascript.
Does jQuery have anything similiar?
All credit to @Diego Fluery, I just took his slide deck and made a runnable code prototype, but it might save you a few minutes if you go this route: