create main.js to load certain files at a time: not all at once