Moved settings command function into settings.js module.