Rewrite config.js