changes to pathing and main.js for submodule loading with require.js