broke apart main.js
broke apart main.js