Yeah, there's no comparison between the elegance of QML and the clumsiness of web tech. QML, however, is not JavaScript derived, but QtQuick merely features a pretty fast JavaScript engine.
JavaScript, OTOH, shouldn't be put aside as the web's toy language it once was. It came a long way, got highly optimized JavaScript engines, and excels as an object-based functional language with lambda expressions, closures (a very powerful concept), and prototypical inheritance. And it is THE language that powers the web 2.0.