[jQuery] layout of a project / good practices

[jQuery] layout of a project / good practices


Hi guys,
I wonder if anybody knows a good page/tutorial/etc... that explains
good practices in structuring a project that uses jquery.
Currently I have a mess of files that all populate the global name
space with things currently in need.
If my server side programming looked like that, I'd through me out of
the window :)
I need to fix this up, probably putting things in classes (well, these
funny top level functions that work like classes, in a way) etc..
But how does this work with things like $(document).load(...)? And
many questions (most of which have not come into my mind) more.
Any pointers?
--
Jan