use a single document.ready call for jQuery in main.js