QML indeed comes with an ECMA compatible scripting language & engine, but happy to report no WebKit's involved here.
For handling the UI and its states I actually quite enjoyed using this approach. It's certainly a lot more flexible and less error-prone than doing it with (any toolkit's) widgets directly in C or C++.
The backend of the application is still entirely written in Go, of course.