Moving main.js to page-specific js