JavaScript was never a messy language, it was the different browsers that created a horrible situation for using JavaScript in web pages.
People thought VBScript was more powerful. JavaScript was like that attention-seeking red-headed stepchild that you see at family reunions.
There's a good reason Douglas Crockford re-introduced JavaScript as "the wwwrld's most misunderstood programming language." He saw beauty within that others didn't.