javascript loop not working in qml project

Printable View