fetch data within main.js file. reorder links to js files to allow main.js to reference variables assigned within other files.