RequireJS optimization