Split up the RequireJs main.js's for different pages. Do more setup for uploads.