could this index.js file be just a JSON file 'networks.json' and load it through XHR by the ConfigManager component?? 

Using that approach we would avoid loading index.js in the HTML content