integration with RequireJS for more coherent app structure