rewrite settings.js