Update config function in order to read json 'partial' configs

Hi! I noticed that the generated app wasn't able to use the NODE_ENV variables correctly, which was driving me nuts. Found out that it's because the config.js is slicing all the configs as they were .js, but most of them are json. That quick change made it possible to use production environment correctly.