Implementing RequireJs as the new architecture