Smart RequireJS Optimizer