In order to load the file package.js i've created a function called loadPackageConfig() and i've done some refactoring with the function loadMainConfig(), is this refactoring OK ?