Moved some instantiations from appSettings.js to main.js to enhance
clarity.