Enhance RequireJS by considering domains