Move saveSettings() to settings.js

Seems like a better fit.