Update how-store-global-variables-in-qml

add '.pragma library' at the first line of JavaScript file to enable external files to set variables dynamically