Make config.js adaptive