Google could force a standard lib by including it with Chrome. This would solve part of the issue. JS as a language would still have significant warts.