Change the requirejs loading modules. Conseder the App as one big module assembled by Rails