How can widget.get_setting in main.js be accessed in frontend.js?

Resolved by declaring variables for the images in main.js, then returning an array of the variables from main.js. The ‘this’ keyword then references the array in frontend.js (which it was not doing if the array was declared in data() in frontend.js).