refactor simple.js to move the functionality of loading application specific config to service handler