Also this page describes techniques for ECMAScript 3. The ECMAScript 4 will provide the new constructs which will eleminate the need for some of the techniques described here.
There is no downloadable code or implementations you can copy and paste. Unfortunately I have no legal rights to publish the code here. The stuff is easily implementable though. I am sure it is not going to take more than 1 day to implement what I am talking about. Feel free to add comments or corrections to these pages