Separately from what? "QML has a deep JavaScript integration, and allows signal handlers and methods to be defined in JavaScript" according to the docs[1] - the JS engine[2] doesn't seem separable from the QML-based parts of the UI toolkit.
[1] https://doc.qt.io/qt-5/qtqml-javascript-topic.html
[2] https://wiki.qt.io/V4