consalidating document.ready calls into main.js