Qml related JS api moved to separate class