Applied RequireJS modular approach