RequireJS + Modules And Patterns Code Optimization