main.js reorganizing

cleaning up some stuff regarding responsive behavior