I wasent aware of those yahoo videos on advanced js programming... Absolutely awsome! My only regret is that I can't vote this up 50 times :)
This actually solves a lot of my javascript design woes. I will start adapting some useful patterns now :) Leave it to the folks at yahoo to come up with some brilliant solutions.