I remember TypeScript creator(forgot his name) mentioned that it's extremely difficult to do refactoring right in JS.
> He was the original author of Turbo Pascal and the chief architect of Delphi... the lead architect of C# and core developer on TypeScript.
(from wikipedia)
Today's automatic refactoring IDE's are light years ahead what the Smalltalk Refactoring browser ever did.