Reconfigure main and app for RequireJS