normalize settings in settings.js