Using QML and Javascript