Lol, find and replace is great. We probably have this in more places in the code than just here... we may want to consider using a javascript parser to do a parse tree based replacement of this with self (and having it also add the appropriate var self = this).