It looks to me like it might be possible to, in many cases, automatically perform some of the refactoring required to turn a functional and/or class style javascript source into a more prototype/non-class based oo source.
Has anyone made a serious attempt at writing a tool that does this kind of automatic refactoring?