combines require.js into a main.js and add resource cache-busting