optimize nested modules in requirejs