Mv js/lib/config.js -> js/lib/init.js; converted init to use module pattern